[ToC] [Up] [Back] [Next] ... [Book Plug] |
The Information Commons .................... Introduction to HTML |
The value assigned to a NAME should be a name token.
NOTE:
HTML 3 suggested renaming the NAME attribute to ID. Don't do this yet -- there are no current browsers that recognize the ID attribute.
<A NAME="poison"> Toadstools </A>Where the identifier poison is used to NAME the anchored text as the possible target of a hypertext link. The reference identifier can be an arbitrary string, but it must be unique within the document.
<A HREF="#poison"> Poisonous non-mushrooms </A>
you can also target the NAMEd anchor from another document, simply by adding the NAME after the document URL. For example, if the identifier `poison' was located in the file `toads.html' it could be referenced by either
<A HREF="toads.html#poison"> Poisonous non-mushrooms </A>or
<A HREF="http://www.site.edu/slimy/toads.html#poison"> Poisonous non-mushrooms </A>.
Here, for example, is a link back to the top of this page. The coding is <a href="#top">top of this page</a>.
[ToC] [Up] [Back] [Next] ... [Book Plug] | .................... Introduction to HTML |
© Ian Graham 1994-1995 | Page Last Updated: 4 December 1995 |